﻿@{
    ViewBag.Title = "用户信息";
    Layout = "~/Views/Shared/_DetailLayout.cshtml";
}
@inherits CMSWebViewPage<object>
@section Head{
    @*@Html.CreateUpLoadSource()*@
    @*@Html.CreateEditorSource()*@
}
<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'center',border:false" class="xhidden">
        <div class="top-block">
            @CurrentButtonTool.Create()
        </div>
        <form id="fr_userinfo" method="post" enctype="multipart/form-data">
            @*@Html.AntiForgeryToken()*@
            <table class="tblContent">
                <colgroup>
                    <col class="colTitle" />
                    <col class="colContent" />
                </colgroup>
                <tr>
                    <td>用户名称:</td>
                    <td>@CurrentUser.UserName</td>
                </tr>
                <tr>
                    <td>真实姓名:</td>
                    <td>@CurrentUser.RealName</td>
                </tr>
                <tr>
                    <td>权限类型:</td>
                    <td>
                        @switch (CurrentUser.PowerType)
                        {
                            case 0:
                            @("继承角色组部分权限")
                                break;
                            case 1:
                            @("继承角色组所有权限")
                                break;
                            case 2:
                            @("用户独立权限")
                                break;
                            default:
                            @("权限类型异常")
                                break;
                        }
                    </td>
                </tr>
                <tr>
                    <td>性别:</td>
                    <td>@(CurrentUser.Sex == 0 ? "男" : "女")</td>
                </tr>
                <tr>
                    <td>头像:</td>
                    <td>
                        @Html.ImagePreview("objProvide.Avatar", CurrentUser.Avatar, new { style = "width:150px;" })
                    </td>
                </tr>
                <tr>
                    <td>手机号:</td>
                    <td>
                        @CurrentUser.Telephone
                    </td>
                </tr>
                <tr>
                    <td>QQ号:</td>
                    <td>
                        @CurrentUser.QQ
                    </td>
                </tr>
                <tr>
                    <td>邮箱:</td>
                    <td>
                        @CurrentUser.Email
                    </td>
                </tr>
                <tr>
                    <td>所属部门:</td>
                    <td>
                        @CurrentUser.Department
                    </td>
                </tr>
                <tr>
                    <td>地址:</td>
                    <td>
                        @CurrentUser.Address
                    </td>
                </tr>
                <tr>
                    <td>自我简述:</td>
                    <td>
                        @CurrentUser.Description
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>
@section Bottom{
    <script type="text/javascript">
        function EditInfo() {
            window.location.href = "/UserInfo/EditInfo";
        }
        function EditPassword() {
            window.location.href = "/UserInfo/EditPassword";
        }
    </script>
}

